<?php
/**
 * Top menu definition.
 *
 * @var BackendController $this
 */

$this->widget('bootstrap.widgets.TbNavbar',array(
        'type' => 'inverse',
        'brand' => 'Bookswapp',
        'brandUrl' => '/',
        'collapse' => true,

    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.TbMenu', 
            'items'=>array(
                array('label'=>'Home', 'url'=>array('/site/index')),
                array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
                array('label'=>'Contact', 'url'=>array('/site/contact')),
                array('label'=>'CRUD-Tabelle', 'items'=>array(
                            array('label'=>Yii::t('app', 'Admin'), 'url'=>array('/admin/index')),
                            array('label'=>Yii::t('app', 'Adoption'), 'url'=>array('/adoption/index')),
                            array('label'=>Yii::t('app', 'Book'), 'url'=>array('/book/index')),
                            array('label'=>Yii::t('app', 'Classroom'), 'url'=>array('/classroom/index')),
                            array('label'=>Yii::t('app', 'Condition'), 'url'=>array('/condition/index')),
                            array('label'=>Yii::t('app', 'Course'), 'url'=>array('/course/index')),
                            array('label'=>Yii::t('app', 'Print Type'), 'url'=>array('/printType/index')),
                            array('label'=>Yii::t('app', 'Publisher'), 'url'=>array('/publisher/index')),
                            array('label'=>Yii::t('app', 'School'), 'url'=>array('/school/index')),
                            array('label'=>Yii::t('app', 'Subject'), 'url'=>array('/subject/index')),
                            array('label'=>Yii::t('app', 'Swap'), 'url'=>array('/swap/index')),
                            array('label'=>Yii::t('app', 'User'), 'url'=>array('/user/index')),
                            ),
                        ),
                array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
            ),
        ),
    ),
)); ?>